|
| | currentsystem = platform.system() |
| |
| | input_func = raw_input |
| |
| | SDKVersion = MvCamera.MV_CC_GetSDKVersion() |
| |
| | interfaceList = MV_INTERFACE_INFO_LIST() |
| |
| | transportLayerType = MV_GIGE_INTERFACE | MV_CAMERALINK_INTERFACE | MV_CXP_INTERFACE | MV_XOF_INTERFACE |
| |
| | ret = MvCamera.MV_CC_EnumInterfaces(transportLayerType, interfaceList) |
| |
| | interfaceInfo = cast(interfaceList.pInterfaceInfos[i], POINTER(MV_INTERFACE_INFO)).contents |
| |
| def | displayName = decoding_char(interfaceInfo.chDisplayName) |
| |
| def | serialNumber = decoding_char(interfaceInfo.chSerialNumber) |
| |
| def | modelName = decoding_char(interfaceInfo.chModelName) |
| |
| def | interfaceId = decoding_char(interfaceInfo.chInterfaceID) |
| |
| | nConnectionNum = input_func("please input the number of the interface to connect:") |
| |
| | cam = MvCamera() |
| |
| | curInterface = cast(interfaceList.pInterfaceInfos[int(nConnectionNum)], POINTER(MV_INTERFACE_INFO)).contents |
| |
| | stEnumValue = MVCC_ENUMVALUE() |
| |